package com.example.entity.dto.inspect;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@ApiModel("保存检验单结果dto")
@Data
public class SaveInspectResultDto implements Serializable {

    @NotNull(message = "检验人员ID不能为空")
    @ApiModelProperty("检验人员ID")
    private String people;

    @NotNull(message = "检验人员名称不能为空")
    @ApiModelProperty("检验人员名称")
    private String peopleName;

    @NotNull(message = "iHead的uid不能为空")
    @ApiModelProperty("iHead的uid")
    private Long uid;

    @NotNull(message = "检验单类型不能为空")
    @ApiModelProperty("检验单类型(首检, 巡检)")
    private String type;

    // 样本数
    @Min(value = 1, message = "样本数需要大于等于1")
    @ApiModelProperty("样本数")
    private BigDecimal udf66;

    // 抽检数
    @Min(value = 1, message = "抽检数需要大于等于1")
    @ApiModelProperty("抽检数")
    private BigDecimal udf88;

    @NotNull(message = "检验结果不能为空")
    @ApiModelProperty("检验结果")
    private String status;

    @ApiModelProperty("样本数")
    private List<IBasicsDto> basicsList;

}
